<%@ page import="com.bxl.SelectNews" %>
<%@ page import="com.bxl.SelectNewsImpl" %>
<%@ page import="com.NewsService.NewsService" %>
<%@ page import="com.NewsServiceImpl.NewsServiceImpl" %>
<%@ page import="java.util.List" %>
<%@ page import="com.entity.News" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/4/8
  Time: 10:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%
           int index1=0;
           String index= request.getParameter("index");
           if(index == null){
               index1=0;
           }else {
               index1=Integer.parseInt(index);
       }
        int crenCount1=0;
        String crenCount=   request.getParameter("crenCount");
        if(index == null){
            crenCount1=1;
        }else {
            crenCount1=1;
        }
      NewsService newsService = new NewsServiceImpl();
      List<News>  list =newsService.ServicesSlectPage(index1,crenCount1);
      session.setAttribute("list",list);
      session.setAttribute("index1",index1);
      request.getRequestDispatcher("index.jsp").forward(request,response);
    %>

</body>
</html>
